UnregisterDependent
TheUnregisterDependent
method removes the previously registered destination part from the list of parts to be notified whenever the link is updated.
void UnregisterDependent (in ODPart clientPart);
clientPart
- A reference to the destination part to be unregistered.
DISCUSSION
If your part is the destination of this link, you can call this method to unregister your part as a dependent. Dependent parts receive automatic notification of any changes to the link's content. You can reregister your part by calling theRegisterDependent
method.You should call this method in your part's
HandleEvent
method after calling theShowLinkDestinationInfo
method if the user has broken the link or has changed from automatic to manual notification. In either case, you should call this method only if the selected link destination is your part's only registered destination of the link-source object corresponding to this link object.The UnregisterDependent method returns without error if the specified destination part was not previously registered as a dependent of this link.
SEE ALSO
TheODLink::RegisterDependent
method (page 355).
TheODLink::ShowLinkDestinationInfo
method (page 357).
"Breaking and Cutting Links" on page 394 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help